/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dbHandler;

/**
 * factory used to determine database
 *
 * @author Rick
 */
public abstract class DAOfactory {

    //list of DAO types supported by the factory
    //currently only mysql
    public static final int MYSQL = 1;
    public static final int DERBY = 2;

    public abstract ContactInfoDAO getContactInfoDAO();
    public abstract FamiliesDAO getFamiliesDAO();
    public abstract GivesToDAO getGivesToDAO();
    public abstract MinistryGroupDAO getMinistryGroupDAO();
    public abstract ParishionersDAO getParishionersDAO();
    public abstract PledgesDAO getPledgesDAO();

    public static DAOfactory getDAOfactory(int whichFactory){
        switch(whichFactory){
            case MYSQL:
                //return new MySqlDAOFactory();
                return null;
            case DERBY:
                return new DerbyDAOFactory();
            default:
                return null;

        }
    }

}
